<html>
<head>
  <script type='text/javascript' src='/ittl/dwr/interface/Demo.js'></script>
  <script type='text/javascript' src='/ittl/dwr/engine.js'></script>
  <script type='text/javascript' src='/ittl/dwr/util.js'></script>


<script type="text/javascript">
function update() {
  var name = dwr.util.getValue("demoName");
  Demo.sayHello(name, function(data) {
    dwr.util.setValue("demoReply", data);
  });
}
</script>


</head>
<body>


<p>
  Name:
  <input type="text" id="demoName" onchange="update()"/>
  <input value="Send" type="button" />
  <br/>
  Reply: <span id="demoReply"></span>
</p>
